package com.zerui.manager.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude
public class AccessAuthDeviceVO {

    @ApiModelProperty("主键，无业务含义")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceId;

    @ApiModelProperty("设备编号")
    private String deviceCode;

    @ApiModelProperty("设备源 1：IoT 2：ICC")
    private Integer deviceFrom;

    @ApiModelProperty("设备名称")
    private String name;

    @ApiModelProperty(value = "设备位置")
    private String position;

    @ApiModelProperty(value = "设备分组")
    private String groupName;

    @ApiModelProperty(value = "所属产品")
    private String type;

    @ApiModelProperty(value = "所属产品名称")
    private String typeName;

    @ApiModelProperty("门禁授权id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long accessAuthId;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
